home *** CD-ROM | disk | FTP | other *** search
- Path: peer-news.britain.eu.net!psinntp!psinntp!psinntp!pipeline!not-for-mail
- From: gordo@nyc.pipeline.com (Gordon Krefting)
- Newsgroups: comp.lang.c++
- Subject: Re: how to include math.h ?
- Date: 18 Jan 1996 08:34:13 -0500
- Organization: The Pipeline
- Message-ID: <4dli8l$7tj@pipe3.nyc.pipeline.com>
- References: <4dhdgk$rj8@ipo.ipoline.com>
- NNTP-Posting-Host: pipe3.nyc.pipeline.com
- X-PipeUser: gordo
- X-PipeHub: nyc.pipeline.com
- X-PipeGCOS: (Gordon Krefting)
- X-Newsreader: The Pipeline v3.4.0
-
- On Jan 16, 1996 18:43:44 in article <how to include math.h ?>,
- 'schew@ipoline.com (Stan. Chew)' wrote:
-
-
- >hi, I am a beginner to use MS visual c++. I write some codes
- >to calculate some functions of sine, cos and etc. I include
- >math.h under hellovw.cpp (i.e. the view file) at the beginning
- >of the codes. But after compling it, it says the sine and cos
- >functions are invalid. Anyone can help me ?
-
- Do you have multiple source files (i.e. do you reference sin or cos in some
- file besides hellovw.cpp)? You have to make sure that math.h is included in
- every file that has references to the math functions..
-
- Are you spelling "sin" correctly? It's "sin", not "sine" or "Sin"...
-
- What error message does the compiler give you? Is it a compile error or a
- link error?
-
- gordo
-